<div class='span12'>
<!-- HEADER -->
<div class='row-fluid'>
    <div class='span12'>
        <div class='page-header'>
            <h1>
                <i class='icon-cogs'></i>
                <span>SETTINGS</span>
            </h1>
        </div>
    </div>
</div>

<!-- END OF HEADER -->


<div class="row-fluid">
<div class="span12 box bordered-box blue-border">
<div class="box-header dark-background">
    <div class="title">GENERAL SETTINGS</div>
    <div class="actions">
        <a href="#" class="btn box-remove btn-mini btn-link"><i class="icon-remove"></i>
        </a>
        <a href="#" class="btn box-collapse btn-mini btn-link"><i></i>
        </a>
    </div>
</div>
<div class="box-content">

<p>
    <?=
    (Session::get('message') ? Session::get('message') : '');
    ?>
</p>

<div class="tabbable">
<ul class="nav nav-tabs nav-tabs-simple">
    <li class="active">
        <a class="green-border" data-toggle="tab" href="#basic">
            <i class="icon-indent-left"></i>
            Basic
        </a>
    </li>
    <li class="">
        <a data-toggle="tab" href="#notification">
            <i class="icon-edit text-red"></i>
            Notification
        </a>
    </li>
    <li class="">
        <a data-toggle="tab" href="#address">
            <i class="icon-map-marker text-red"></i>
            Address
        </a>
    </li>
    
     <li class="">
        <a data-toggle="tab" href="#socialmedia">
           <i class="icon-anchor text-grass-green"></i>
            Social Media
        </a>
    </li>
    
</ul>
<div class="tab-content">

<div class="tab-pane active" id="basic">
    <form accept-charset="<?= Settings::get('en','charecter_set');?>" action="<?= URL::current(); ?>" class="form form-horizontal"
          method="post"
          enctype='multipart/form-data'>
        <div>
            <?= Form::token(); ?>
        </div>

        <div class="control-group">
            <label class="control-label"> Site name <span class="text text-error">*</span></label>

            <div class="controls">
                <input class="input-xxlarge" name="site_name" id="site_name"
                       value="<?= Settings::get('en','site_title');?>" placeholder="domain.com"
                       type="text">
                <span class="text text-error"><?php echo $errors->first('site_name') ?></span>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"> Slogan <span class="text text-error">*</span></label>

            <div class="controls">
                <input class="input-xxlarge" name="site_slogan" id="site_slogan"
                       value="<?= Settings::get('en','site_slogan');?>" placeholder="Site slogan"
                       type="text">
                <span class="text text-error"><?php echo $errors->first('site_slogan') ?></span>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"> Logo Image <span class="text text-error">*</span></label>

            <div class="controls">
                <input class="btn" name="logo_file" type="file">
                <img
                    src="<?= Url::base(); ?>/storage/uploads/images/thumbnails/<?= Settings::get('en', 'site_logo'); ?>"
                    title="Site Logo">
                <small class="text-dark-orange">Logo file should be in size 45 x 150</small>
            </div>
        </div>
        <hr class="hr-normal">
         <div class="control-group">
            <label class="control-label"> Deafult Location <span class="text text-error">*</span></label>

            <div class="controls">
            <p>
              <small class="muted">Default location i.e India, if no location defined it will show in url segment</small>
            </p>
                <input class="input-xlarge" name="default_location" id="default_location"
                       value="<?= Settings::get('en','default_location');?>" placeholder="Default Location"
                       type="text">
                <span class="text text-error"><?php echo $errors->first('default_location') ?></span>
            </div>
        </div>
        
        <div class="control-group">
                                        <label class="control-label">Website Mode</label>
                                        <div class="controls">
                                            <label class="radio">
                                                <input type="radio" value="1" name="site_mode" <?= (Settings::get($this->lang, 'site_mode')== 1 ? "checked='checked'" : '');?>>
                                                Live mode
                                            </label>
                                            <label class="radio">
                                                <input type="radio" value="0" name="site_mode" <?= (Settings::get($this->lang, 'site_mode')== 0 ? "checked='checked'" : '');?> >
                                                Maintanence mode
                                            </label>

                                        </div>
                                    </div>
                                    
                                    
                                    <div class="control-group">
                                    <label class="control-label"> Currency Type<span class="text text-error">*</span></label>
                                    
            <div class="controls">
                <input class="input-xlarge" name="currency_type" id="currency_type"
                       value="<?= Settings::get('en','currency');?>" placeholder="domain.com"
                       type="text">
                <span class="text text-error"><?php echo $errors->first('site_name') ?></span>
            </div>
                                    </div>
       <legend>Meta Settings :
        
    </legend>
    
      <div class="control-group">
                                    <label class="control-label">Meta Title <span class="text text-error">*</span></label>
                                    <div class="controls">
                                        <input class="input-xxlarge" name="meta_title" value="<?= Settings::get('en', 'meta_title');?>" placeholder="Site Title" type="text">
                                         <span class="text text-error"><?php echo $errors->first('meta_title') ?></span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">Meta Keyword</label>
                                    <div class="controls">
                                        <input class="input-xxlarge" name="meta_keyword" value="<?= Settings::get('en', 'meta_keyword');?>" type="text">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">Meta Description</label>
                                    <div class="controls">
                                        <textarea class="form-control input-xxlarge" rows="3" name="meta_description"> <?= Settings::get('en', 'meta_description');?></textarea>

                                    </div>
                                </div>
                                
        
         <legend>Google Settings :
        
    </legend>
         <div class="control-group">
            <label class="control-label"> Google Analytics</label>

            <div class="controls">
                <textarea name="google_analytics" id="google_analytics" class="input-xxlarge" rows="10"><?= Settings::get('en','google_analytics');?></textarea>
                
               
            </div>
        </div>
        
        
         <div class="control-group">
            <label class="control-label"> Adsence Publisher Id </label>

            <div class="controls">
                <input class="input-xxlarge" name="publisher_id" value="<?= Settings::get('en', 'publisher_id');?>" placeholder="Publisher Id" type="text">
                                    
            </div>
        </div>
        
        <hr class="hr-normal">
        <div class="control-group">
            <label class="control-label"> Footer Area </label>

            <div class="controls">
                <textarea name="footer_area" id="footer_area" class="input-xxlarge" rows="5"><?= Settings::get('en','footer_text');?></textarea>
                
                <?php echo $errors->first('footer_area') ?>
            </div>
        </div>
        

        <div class="form-actions">
            <button class="btn btn-primary" type="submit" name="btnSave" value="save"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>
                <i class="icon-save"></i>
                Save
            </button>
        </div>

    </form>
</div>
<div class="tab-pane" id="notification">

    <form accept-charset="<?= Settings::get('en','charecter_set');?>" action="<?= URL::current(); ?>" class="form form-horizontal"
          method="post">

        <legend>
            Email Notification :
        </legend>
        <div class="control">
            <label class="control-label"> Notification to Admin </label>

            <div class="control-group">
                <div class="controls">
                    <label class="checkbox">
                        <input type="checkbox" name="not_admin_reg" <?= (Settings::get('en','notify_admin_registration')== 'on' ? 'checked' : '' );?> >
                        On new user Register.
                    </label>
                    <label class="checkbox">
                        <input type="checkbox" name="not_admin_post" <?= (Settings::get('en','notify_admin_post')== 'on' ? 'checked' : '' );?> >
                        On new Post.
                    </label>

                    <label class="checkbox">
                        <input type="checkbox" name="not_admin_comment" <?= (Settings::get('en','notify_admin_comment')== 'on' ? 'checked' : '' );?> >
                        On new Comment on Post.
                    </label>
                    <label class="checkbox">
                        <input type="checkbox" name="not_admin_incorrect"  <?= (Settings::get('en','notify_admin_incorrect')== 'on' ? 'checked' : '' );?> >
                        On Report Incorrect.
                    </label>
                </div>
            </div>
        </div>


        <div class="control">
            <label class="control-label"> Notification to user </label>

            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox" name="not_user_registration" <?= (Settings::get('en','notify_user_registration')== 'on' ? 'checked' : '');?>>
                    On Registration
                </label>
                <label class="checkbox">
                    <input type="checkbox" name="not_user_post" <?= (Settings::get('en','notify_user_post')== 'on' ? 'checked' : '');?>>
                    On new Post.
                </label>
            </div>
        </div>


        <legend>
            Moderation Settings :
        </legend>
        <div class="control">
            <label class="control-label"> Moderation </label>

            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox" name="mod_post" <?= (Settings::get('en','mod_post')== 'on' ? 'checked' : '');?>>
                    Enable Post Moderation
                </label>
                <label class="checkbox">
                    <input type="checkbox" name="mod_comment" <?= (Settings::get('en','mod_comment')== 'on' ? 'checked' : '');?>>
                    Enable Comment Moderation
                </label>

                <label class="checkbox">
                    <input type="checkbox" name="mod_photo" <?= (Settings::get('en','mod_photo')== 'on' ? 'checked' : '');?>>
                    Enable Photo Moderation
                </label>
                <label class="checkbox">
                    <input type="checkbox" name="mod_video" <?= (Settings::get('en','mod_video')== 'on' ? 'checked' : '');?>>
                    Enable Video Moderation
                </label>
            </div>
        </div>

        <div class="form-actions">
            <button class="btn btn-primary" type="submit" name="btnSave" value="notification"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>
                <i class="icon-save"></i>
                Save
            </button>
        </div>

    </form>

</div>
<div class="tab-pane" id="address">
    <legend>Office Address
        <small> * Display in footer</small>
    </legend>
    <form accept-charset="<?= Settings::get('en','charecter_set');?>" class="form form-horizontal" action="<?= URL::current(); ?>" method="post">
        <div class="control-group">
            <label class="control-label"> Company </label>

            <div class="controls">
                <input class="input-xxlarge" name="company"
                       value="<?= Settings::get('en', 'office_company'); ?>" placeholder="Company Name"
                       type="text">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"> Address </label>

            <div class="controls">
                <textarea class="input-xxlarge" rows="3"
                          name="address"><?= Settings::get('en', 'office_address'); ?></textarea>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"> Email</label>

            <div class="controls">
                <input class="input-xlarge" name="email"
                       value="<?= Settings::get('en', 'office_email'); ?>" placeholder="Email"
                       type="text">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"> Phone (Mobile)</label>

            <div class="controls">
                <input class="input-xlarge" name="phone_mobile"
                       value="<?= Settings::get('en', 'office_contact_1'); ?>" placeholder="Mobile"
                       type="text">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"> Phone (Landline)</label>

            <div class="controls">
                <input class="input-xlarge" name="phone_landline"
                       value="<?= Settings::get('en', 'office_contact_2'); ?>" placeholder="Phone"
                       type="text">
            </div>
        </div>

        <div class="form-actions">
            <button class="btn btn-primary" type="submit" name="btnSave" value="address"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>
                <i class="icon-save"></i>
                Save
            </button>
        </div>

    </form>
</div>

<div class="tab-pane" id="socialmedia">
<legend>Social Media :
        
    </legend>
    <p>
                                <small class="muted">Type full url of your Social Network platform (http://facebook.com/matrixinfoline)</small>
                            </p>
                            <form accept-charset="<?= Settings::get('en','charecter_set');?>" action="<?= URL::current();?>" class="form form-horizontal " method="post">
	                   <div class="control-group">
                                    <label class="control-label"><i class="icon-facebook"></i> Facebook </label>
                                    <div class="controls">
                                        <input class="input-xxlarge" name="social_facebook" value="<?= Settings::get('en', 'social_facebook');?>" placeholder="Facebook" type="text">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label"><i class="icon-twitter"></i> Twitter</label>
                                    <div class="controls">
                                        <input class="input-xxlarge" name="social_twitter" value="<?= Settings::get('en', 'social_twitter');?>" placeholder="Twitter" type="text">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label"><i class="icon-linkedin"></i> LinkdIn</label>
                                    <div class="controls">
                                        <input class="input-xxlarge" name="social_linkdin" value="<?= Settings::get('en', 'social_linkdin');?>" placeholder="LinkdIn" type="text">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label"><i class="icon-google-plus"></i> Google+</label>
                                    <div class="controls">
                                        <input class="input-xxlarge" name="social_google" value="<?= Settings::get('en', 'social_google');?>" placeholder="Google+" type="text">
                                    </div>
                                </div>


                                <hr class="hr-normal">



                                <div class="form-actions">
                                    <button class="btn btn-primary" type="submit" name="btnSave" value="social"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>
                                        <i class="icon-save"></i>
                                        Save
                                    </button>
                                </div>
                            </form>
</div>
</div>
<!-- END OF TAB CONTENT !-->
</div>
</div>


<!-- END OF CONTENT -->
</div>
</div>

</div>